package com.spzx.product.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 品牌与商品分类关联表 brand
 *
 * @author gaozz
 */
@Data
@Schema(description = "品牌与分类关联信息")
public class CategoryBrand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌id
     */
    @Schema(description = "品牌id")
    @NotNull(message = "品牌id不能为空")
    private Long brandId;

    /**
     * 分类id
     */
    @Schema(description = "分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;
}
